package com.ruoyi.cms.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文章草稿对象 biz_article_draft
 *
 * @author ruoyi
 * @date 2020-12-06
 */
public class ArticleDraft extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long id;

    /**
     * 分类ID
     */
    @Excel(name = "分类ID")
    private Long categoryId;

    /**
     * 分类名称
     */
    @Excel(name = "分类名称")
    private String categoryName;

    /**
     * 平台
     */
    @Excel(name = "平台")
    private Integer platform;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 繁体标题
     */
    @Excel(name = "繁体标题")
    private String tTitle;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Integer dataState;

    /**
     * wp文章发布后的id
     */
    @Excel(name = "wp文章发布后的id")
    private Long wpPostId;

    /**
     * 作者
     */
    @Excel(name = "作者")
    private String author;

    /**
     * 繁体作者
     */
    @Excel(name = "繁体作者")
    private String tAuthor;

    /**
     * url hash
     */
    @Excel(name = "url hash")
    private String urlHash;

    /**
     * 文章链接
     */
    @Excel(name = "文章链接")
    private String url;

    /**
     * 正文
     */
    @Excel(name = "正文")
    private String content;

    /**
     * 繁体正文
     */
    @Excel(name = "繁体正文")
    private String tContent;

    /**
     * 文章封面图片
     */
    @Excel(name = "文章封面图片")
    private String coverImage;

    /**
     * 是否原创，0否，1是
     */
    @Excel(name = "是否原创，0否，1是")
    private Integer original;

    /**
     * 描述
     */
    @Excel(name = "描述")
    private String description;

    /**
     * 繁体描述
     */
    @Excel(name = "繁体描述")
    private String tDescription;

    /**
     * 关键字
     */
    @Excel(name = "关键字")
    private String keywords;

    /**
     * 繁体关键字
     */
    @Excel(name = "繁体关键字")
    private String tKeywords;

    /**
     * 抓取到的文章，根据内容判断结果，1非原创，2含有音视频
     */
    private Integer result;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getPlatform() {
        return platform;
    }

    public void setPlatform(Integer platform) {
        this.platform = platform;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String gettTitle() {
        return tTitle;
    }

    public void settTitle(String tTitle) {
        this.tTitle = tTitle;
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    public Long getWpPostId() {
        return wpPostId;
    }

    public void setWpPostId(Long wpPostId) {
        this.wpPostId = wpPostId;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String gettAuthor() {
        return tAuthor;
    }

    public void settAuthor(String tAuthor) {
        this.tAuthor = tAuthor;
    }

    public String getUrlHash() {
        return urlHash;
    }

    public void setUrlHash(String urlHash) {
        this.urlHash = urlHash;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String gettContent() {
        return tContent;
    }

    public void settContent(String tContent) {
        this.tContent = tContent;
    }

    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }

    public Integer getOriginal() {
        return original;
    }

    public void setOriginal(Integer original) {
        this.original = original;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String gettDescription() {
        return tDescription;
    }

    public void settDescription(String tDescription) {
        this.tDescription = tDescription;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String gettKeywords() {
        return tKeywords;
    }

    public void settKeywords(String tKeywords) {
        this.tKeywords = tKeywords;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("categoryId", getCategoryId())
                .append("categoryName", getCategoryName())
                .append("platform", getPlatform())
                .append("title", getTitle())
                .append("tTitle", gettTitle())
                .append("dataState", getDataState())
                .append("wpPostId", getWpPostId())
                .append("author", getAuthor())
                .append("tAuthor", gettAuthor())
                .append("urlHash", getUrlHash())
                .append("url", getUrl())
                .append("content", getContent())
                .append("tContent", gettContent())
                .append("coverImage", getCoverImage())
                .append("original", getOriginal())
                .append("description", getDescription())
                .append("tDescription", gettDescription())
                .append("keywords", getKeywords())
                .append("tKeywords", gettKeywords())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
